package org.example;

import java.io.File;
import java.io.IOException;

public abstract class Hello {
    public static void main(String[] args) {
        System.out.println("原神启动");
        System.out.println("光遇");
        System.out.println("想过离开以这种方式存在！");
        System.out.println("是因为那些旁白！那些姿态，那些伤害。");
        System.out.println("不想离开，当你的笑容存在。");
        System.out.println("忽然我开始莫名期待");
        System.out.println("伤疤，就丢给回忆吧，放下，才得到更好啊");
        System.out.println("别怕，别怕~~");
        System.out.println("嘿嘿嘿，哎嘿!");

        Hello h = new Otto();
        h.sayHi();
        Hello hello = (Otto)(new Otto());
        hello.sayHi();
        System.out.println("asdfasd");

        Hello h1 = new Hello() {
            @Override
            void sayHi() {
                File file = new File("./hello");
                try {
                    file.createNewFile();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        } ;
    }
    public Hello(){}
    abstract void sayHi();
}

class Otto extends Hello{
    public void sayHi(){
        System.out.println("大家好我叫奥托");
    }
    public static void gay(){
        System.out.println("不想上班，不想上班");
        System.out.println("aaaaaaaa");
    }

    public static void main(String[] args) {
        Otto otto = new Otto();
        otto.sayHi();
    }


    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    public static void aVoid(String[] args) {
        System.out.println("aaaaa");
    }
}
